package com.sztz.mapstruct.I组合映射器;

import org.mapstruct.Mapping;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * 组合映射器
 *
 * @author yyf
 * @email yeyafei@hotmail.com
 */
@Retention(RetentionPolicy.CLASS)
@Mapping(target = "id", ignore = true)
@Mapping(source = "name", target = "carName")
@Mapping(source = "owner", target = "ownerName")
public @interface ToCar {
}
